//
//  LWPopupView.swift
//  LWPopupViewController-Swift
//
//  Created by 钟志远 on 2021/1/6.
//

import Foundation
import UIKit

open class LWPopupView: UIView {
    public var willMoveToSuperViewBlock: ((UIView?) -> Void)?
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required public init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    open override func willMove(toSuperview newSuperview: UIView?) {
        willMoveToSuperViewBlock?(newSuperview)
    }
}
